import service from '@/utils/request'
export const znzbGetCategory = (params) => {
  return service({
    url: '/znzb/znzbGetCategory',
    method: 'get',
    params
  })
}

export const znzbGetidCategory = (params) => {
  return service({
    url:'/znzb/znzbGetidCategory',
    method:'get',
    params
  })
}

export const znzbDeleteCategory = (params) => {
  return service({
    url:'/znzb/znzbDeleteCategory',
    method:'delete',
    params
  })
}

export const znzbCreateCategory = (data) => {
  return service({
    url:'/znzb/znzbCreateCategory',
    method:'post',
    data
  })
}

export const znzbUpdateCategory = (data) => {
  return service({
    url:'/znzb/znzbUpdateCategory',
    method:'put',
    data
  })
}
